package cate.game.event.master;

import cate.common.table.d.GD;
import cate.game.event.GameEventListener;
import cate.game.role.Role;

public class GradeUpListener implements GameEventListener<GradeUpEvent> {
    @Override
    public void onEvent(GradeUpEvent gameEvent) {
        Role role = gameEvent.role;
        if (role.getRes().leader.hallows.isOpen()) {
            role.getRes().leader.hallows.unlockLevel();
        }

        role.getHistory().action.gradeChange(gameEvent.newGrade);
    }
}
